package ceura.ia.practica.properties;

/**
 *
 * @author Sergio Jorge
 */
public class Propiedades {

    private static Propiedades INSTANCE = new Propiedades();
    private final int MARGIN = 3;
    public int numCol = 20, numRow = 20;
    private int heightCelda = -1,
            widthCelda = -1, numCeldas = -1;
    private int windowWidth = 0,
            windowHeight = 0;

    private Propiedades() {
    }

    public static Propiedades getInstance() {
        return INSTANCE;
    }

    public int getHeightCelda() {
        heightCelda = windowHeight / numRow;
        return heightCelda;
    }

    public int getWidthCelda() {
        widthCelda = windowWidth / numCol;
        return widthCelda;
    }

    public int getNumCeldas() {
        numCeldas = numCol * numRow;
        return numCeldas;
    }

    public void initWindow(int widht, int height) {
        this.windowWidth = widht;
        this.windowHeight = height;
    }

    public int getWindowHeight() {
        return windowHeight;
    }

    public int getWindowWidth() {
        return windowWidth;
    }

    public int getLaberintoMargin() {
        return MARGIN;
    }
}
